home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PNullCommand.h < prev    next >
C/C++ Source or Header  |  1996-10-15  |  3KB  |  73 lines

  1. /*
  2.  *--- PNullCommand.h -------------------------------------------
  3.  * Copyright (c) 1995 Adobe Systems, Inc.  All rights reserved.
  4.  * Created on Thu, Oct 12, 1995 @ 9:54 PM by Paul Ferguson.
  5.  *
  6.  * Description:  This is a template class for commands that
  7.  *               take no parameters.
  8.  *--------------------------------------------------------------
  9.  */
  10. #ifndef __PNullCommand__
  11. #define __PNullCommand__
  12.  
  13. #ifndef __PCommand__
  14.     #include "PCommand.h"
  15. #endif
  16.  
  17. template <ePMCommand COMMAND>
  18. class PNullCommand
  19. {
  20.  
  21. public:
  22.  
  23.     PNullCommand() { PCommand command(COMMAND); }
  24. };
  25.  
  26. typedef PNullCommand<pm_bringforward>            PBringForward;
  27. typedef PNullCommand<pm_bringtofront>            PBringToFront;
  28. typedef PNullCommand<pm_cascade>                PCascade;
  29. typedef PNullCommand<pm_changenext>                PChangeNext;
  30. typedef PNullCommand<pm_clear>                    PClear;
  31. typedef PNullCommand<pm_convertenhmetafile>        PConvertEnhMetafile;
  32. typedef PNullCommand<pm_copy>                    PCopy;
  33. typedef PNullCommand<pm_cut>                    PCut;
  34. typedef PNullCommand<pm_delete>                    PDelete;
  35. typedef PNullCommand<pm_deleterulerguides>        PDeleteRulerGuides;
  36. typedef PNullCommand<pm_deselect>                PDeselect;
  37. typedef PNullCommand<pm_editlayout>                PEditLayout;
  38. typedef PNullCommand<pm_editstory>                PEditStory;
  39. typedef PNullCommand<pm_exit>                    PExit;
  40. typedef PNullCommand<pm_findnext>                PFindNext;
  41. typedef PNullCommand<pm_group>                    PGroup;
  42. typedef PNullCommand<pm_imagesaveforsep>        PImageSaveForSep;
  43. typedef PNullCommand<pm_indexauto>                PIndexAuto;
  44. typedef PNullCommand<pm_indexautoname>            PIndexAutoName;
  45. typedef PNullCommand<pm_masterguides>            PMasterGuides;
  46. typedef PNullCommand<pm_minisave>                PMiniSave;
  47. typedef PNullCommand<pm_paste>                    PPaste;
  48. typedef PNullCommand<pm_pastelink>                PPasteLink;
  49. typedef PNullCommand<pm_polygonjoin>            PPolygonJoin;
  50. typedef PNullCommand<pm_quit>                    PQuit;
  51. typedef PNullCommand<pm_restorecolor>            PRestoreColor;
  52. typedef PNullCommand<pm_reversepolyvertices>    PReversePolyVertices;
  53. typedef PNullCommand<pm_save>                    PSave;
  54. typedef PNullCommand<pm_savestatusoff>            PSaveStatusOff;
  55. typedef PNullCommand<pm_selectall>                PSelectAll;
  56. typedef PNullCommand<pm_sendbackward>            PSendBackward;
  57. typedef PNullCommand<pm_sendtoback>                PSendToBack;
  58. typedef PNullCommand<pm_separatecontent>        PSeparateContent;
  59. typedef PNullCommand<pm_showpages>                PShowPages;
  60. typedef PNullCommand<pm_styleend>                PStyleEnd;
  61. typedef PNullCommand<pm_textedit>                PTextEdit;
  62. typedef PNullCommand<pm_tile>                    PTile;
  63. typedef PNullCommand<pm_toggleframe>            PToggleFrame;
  64. typedef PNullCommand<pm_ungroup>                PUngroup;
  65. typedef PNullCommand<pm_unlink>                    PUnlink;
  66. typedef PNullCommand<pm_unmask>                    PUnmask;
  67. typedef PNullCommand<pm_zeropointreset>            PZeroPointReset;
  68.  
  69. #endif
  70.  
  71. // end of PNullCommand.h
  72.  
  73.